package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.module.pms.pojo.entity.TWhWarehouseCustomerMaterial;
import com.techsoul.module.pms.pojo.param.TWhWarehouseCustomerMaterialSaveParam;
import com.techsoul.module.pms.pojo.param.TWhWarehouseCustomerMaterialSearchParam;
import com.techsoul.module.pms.pojo.vo.TWhWarehouseCustomerMaterialVo;

import java.util.List;

/**
 * 共享仓储客户物料 Service接口
 * 
 * @author liuen
 * @date 2022-12-30
 */
public interface ITWhWarehouseCustomerMaterialService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TWhWarehouseCustomerMaterialSaveParam params);
    TWhWarehouseCustomerMaterialVo findByMaterialNoAndVehicleModel(String materialNo,String vehicleModel) ;
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TWhWarehouseCustomerMaterialSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    TWhWarehouseCustomerMaterialVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TWhWarehouseCustomerMaterialVo> findAll(TWhWarehouseCustomerMaterialSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TWhWarehouseCustomerMaterialVo> findAll(TWhWarehouseCustomerMaterialSearchParam params, Integer current, Integer pageSize);

    List<TWhWarehouseCustomerMaterialVo>  findVehicleBrand(TWhWarehouseCustomerMaterialSearchParam params);

    List<TWhWarehouseCustomerMaterialVo>  findVehicleModel(TWhWarehouseCustomerMaterialSearchParam params);
}
